--TEST--
Check for factorial(6)
--SKIPIF--
<?php if (!extension_loaded("scheme")) print "skip"; ?>
--FILE--
<?php 
$scheme = new Scheme();
$v = $scheme->eval("
  (define (factorial x)
    (if (= x 0)
      1
      (* x (factorial (- x 1)))))

  (factorial 6)"
);

echo "6! = $v";
?>
--EXPECT--
6! = 720
